from django.db import models
from libs.db import BaseModel


class CertificateTemplate(BaseModel):
    name = models.CharField('模版名称', max_length=100)
    desc = models.CharField('模版描述', max_length=300, null=True, blank=True)
    data = models.JSONField('模版内容')

    class Meta:
        verbose_name = '授权模版'
        verbose_name_plural = '授权模版'
        ordering = ('-id',)
